#include "SMPPBroadcastErrorStatus.hpp"

using namespace smpp::pdu;

BroadcastErrorStatus::BroadcastErrorStatus(const quint32 nValue):
TLV(TLVtags::TAG_BROADCAST_ERROR_STATUS,4),_Value(nValue){}

BroadcastErrorStatus::BroadcastErrorStatus(
const BroadcastErrorStatus &nBroadcastErrorStatus):
TLV(nBroadcastErrorStatus),_Value(nBroadcastErrorStatus.getValue()){}

bool BroadcastErrorStatus::operator ==(
	const BroadcastErrorStatus &nBroadcastErrorStatus) const{
	return (TLV::operator == (nBroadcastErrorStatus) && 
			_Value == nBroadcastErrorStatus.getValue());
}

bool BroadcastErrorStatus::operator !=(
	const BroadcastErrorStatus &nBroadcastErrorStatus) const{
	return !this->operator == (nBroadcastErrorStatus);
}

BroadcastErrorStatus &BroadcastErrorStatus::operator = (
	const BroadcastErrorStatus &nBroadcastErrorStatus){
	if(*this == nBroadcastErrorStatus)
		return *this;
	TLV::operator = (nBroadcastErrorStatus);
	_Value = nBroadcastErrorStatus.getValue();
	return *this;
}

void BroadcastErrorStatus::setValue(const quint32 nValue){
	_Value = nValue;
}

const quint32 BroadcastErrorStatus::getValue() const{
	return _Value;
}
